<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InitUpdate13 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('order_skus', function (Blueprint $table) {
            $table->string('sku_type', 20)->nullable()->index()->comment('奖品类型, custom自定义 coupon为优惠卡券 card为道具卡  score为积分  redpack为红包  none空奖品'); 
        });


        Schema::table('boxes', function (Blueprint $table) {
            $table->string('big_box_bottom')->nullable()->comment('大盒后挡板'); 
            $table->string('big_box_top')->nullable()->comment('大盒前挡板'); 
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('order_skus', function (Blueprint $table) {
            $table->dropColumn('sku_type');
            // $table->dropColumn('user_id');
        });

        Schema::table('boxes', function (Blueprint $table) {
            $table->dropColumn('big_box_bottom');
            $table->dropColumn('big_box_top');
            // $table->dropColumn('user_id');
        });
    }
}
